# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-amply
pkgver=0.1.5
pkgrel=0
pkgdesc="A Python package for AMPL/GMPL datafile parsing"
url="https://github.com/willu47/amply"
arch="noarch"
license="EPL-1.0"
depends="python3 py3-parsing"
makedepends="py3-setuptools py3-setuptools_scm py3-wheel"
checkdepends="python3-dev py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/a/amply/amply-$pkgver.tar.gz"
builddir="$srcdir/amply-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/src pytest -vv
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
e246dfd061159a24b59c1c46102b259dfec3d83067d542f822851fca37272da5176081c2002b1f0347465fb262b79b886703647f73ad66906b25884eeccc6b91  py3-amply-0.1.5.tar.gz
"
